import { http } from '@/utils'

// 1.获取问题列表
export interface Response {
    category: Category[];
    code: number;
    data: Datum[];
    page: number;
    pageSize: number;
    totalCnt: number;
    [property: string]: any;
}

export interface Category {
    alt?: string;
    caption?: string;
    content?: null;
    default_image?: string;
    description?: null;
    id?: number;
    keywords?: null;
    router?: string;
    title?: string;
    [property: string]: any;
}

export interface Datum {
    category: number;
    default_image: null;
    description: null;
    id: number;
    keywords: null;
    release_time: string;
    title: string;
    [property: string]: any;
}

export type ReqParams = {
    page: string
    pageSize: string
  }
export function fetchSupportListAPI(params: ReqParams) {
    return http.request<Response>({
        url: '/support/list/',
        params,
    })
}

